
namespace JTZY.Model.Order.Dto
{
    /// <summary>
    /// 订单明细表查询对象
    /// </summary>
    public class CorecmsorderitemQueryDto : PagerInfo 
    {
    }

    /// <summary>
    /// 订单明细表输入输出对象
    /// </summary>
    public class CorecmsorderitemDto
    {
        [Required(ErrorMessage = "序号不能为空")]
        [ExcelColumn(Name = "序号")]
        [ExcelColumnName("序号")]
        public int Id { get; set; }

        [Required(ErrorMessage = "订单ID 关联order.id不能为空")]
        [ExcelColumn(Name = "订单ID 关联order.id")]
        [ExcelColumnName("订单ID 关联order.id")]
        public string OrderId { get; set; }

        [Required(ErrorMessage = "商品ID 关联goods.id不能为空")]
        [ExcelColumn(Name = "商品ID 关联goods.id")]
        [ExcelColumnName("商品ID 关联goods.id")]
        public int GoodsId { get; set; }

        [Required(ErrorMessage = "货品ID 关联products.id不能为空")]
        [ExcelColumn(Name = "货品ID 关联products.id")]
        [ExcelColumnName("货品ID 关联products.id")]
        public int ProductId { get; set; }

        [ExcelColumn(Name = "货品编码")]
        [ExcelColumnName("货品编码")]
        public string Sn { get; set; }

        [ExcelColumn(Name = "商品编码")]
        [ExcelColumnName("商品编码")]
        public string Bn { get; set; }

        [Required(ErrorMessage = "商品名称不能为空")]
        [ExcelColumn(Name = "商品名称")]
        [ExcelColumnName("商品名称")]
        public string Name { get; set; }

        [Required(ErrorMessage = "货品价格单价不能为空")]
        [ExcelColumn(Name = "货品价格单价")]
        [ExcelColumnName("货品价格单价")]
        public decimal Price { get; set; }

        [Required(ErrorMessage = "货品成本价单价不能为空")]
        [ExcelColumn(Name = "货品成本价单价")]
        [ExcelColumnName("货品成本价单价")]
        public decimal Costprice { get; set; }

        [Required(ErrorMessage = "市场价不能为空")]
        [ExcelColumn(Name = "市场价")]
        [ExcelColumnName("市场价")]
        public decimal Mktprice { get; set; }

        [Required(ErrorMessage = "图片不能为空")]
        [ExcelColumn(Name = "图片")]
        [ExcelColumnName("图片")]
        public string ImageUrl { get; set; }

        [Required(ErrorMessage = "数量不能为空")]
        [ExcelColumn(Name = "数量")]
        [ExcelColumnName("数量")]
        public int Nums { get; set; }

        [Required(ErrorMessage = "总价不能为空")]
        [ExcelColumn(Name = "总价")]
        [ExcelColumnName("总价")]
        public decimal Amount { get; set; }

        [Required(ErrorMessage = "商品优惠总金额不能为空")]
        [ExcelColumn(Name = "商品优惠总金额")]
        [ExcelColumnName("商品优惠总金额")]
        public decimal PromotionAmount { get; set; }

        [ExcelColumn(Name = "促销信息")]
        [ExcelColumnName("促销信息")]
        public string PromotionList { get; set; }

        [Required(ErrorMessage = "总重量不能为空")]
        [ExcelColumn(Name = "总重量")]
        [ExcelColumnName("总重量")]
        public decimal Weight { get; set; }

        [Required(ErrorMessage = "发货数量不能为空")]
        [ExcelColumn(Name = "发货数量")]
        [ExcelColumnName("发货数量")]
        public int SendNums { get; set; }

        [ExcelColumn(Name = "货品明细序列号存储")]
        [ExcelColumnName("货品明细序列号存储")]
        public string Addon { get; set; }

        [Required(ErrorMessage = "创建时间不能为空")]
        [ExcelColumn(Name = "创建时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
        [ExcelColumnName("创建时间")]
        public DateTime? CreateTime { get; set; }

        [ExcelColumn(Name = "更新时间", Format = "yyyy-MM-dd HH:mm:ss", Width = 20)]
        [ExcelColumnName("更新时间")]
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string BarCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string SnCodes { get; set; }

        [ExcelColumn(Name = "品牌")]
        public string BrandName { get; set; }

        public int Stock { get; set; }

    }
}